Transaction lookup
Details
URL : <base_url>/giftcards/transaction/lookup
Method : GET
Authentication required : YES
Post body type: Query String
Request parameters
In the request URL, provide the following parameters in the body of the request.
Parameter | Type | Example | Description |
---|---|---|---|
id | integer | 10000 | Id of transaction. |
Success Response
Code : 200 OK
Content :
{
"transaction": {
"id": 77756,
"cashier": "Jhen brown",
"amount": 1000,
"refunded": true,
"smart_card": 1,
"location": "manor park",
"datetime": "January 8, 2024, 11:46 am"
}
}
{
"transaction": {
"id": 77756,
"cashier": "Jhen brown",
"amount": 1000,
"refunded": false,
"smart_card": 1,
"location": "manor park",
"datetime": "January 8, 2024, 11:46 am"
}
}
Error Responses
Condition : Incorrect transaction.
Code : 400 BAD REQUEST
Content :
{
"message": "The given data was invalid.",
"errors": {
"id": "Invalid activity"
}
}